package com.tjetc.service;

import com.tjetc.common.JsonResult;
import com.tjetc.entity.Dish;
import com.tjetc.entity.DishRequest;
import com.tjetc.entity.DishType;

//商家管理菜品的业务类
public interface MerchantDishService {
    //添加菜品
    JsonResult addDish(Dish dish,Integer merchantId);
    //获得当前商家所有的菜品
    JsonResult getMerchantDish(String pageNum,String pageSize,Integer merchantId);
    //通过菜品id查询菜品详情
    JsonResult getDishDetailById(String id);
    //更细菜品信息
    JsonResult updateDish(Dish dish,Integer merchantId);

    JsonResult test(Dish dish);
    //修改菜品状态，上下架等
    JsonResult changeStatus(Integer id,Integer status);
    //获得菜品审核列表
    JsonResult getMerchantExamine(Integer pageNum,Integer pageSize,Integer id);

    Integer getNumberOfDish(Integer merchantId);

    Integer countDishWith(DishRequest dishRequest);

    JsonResult getDishWith(DishRequest dishRequest);
}
